# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=mp3gain
pkgver=1.6.2
_pkgver_download=1_6_2
pkgrel=2
pkgdesc="Analyzes and adjusts the volume of MP3 files"
url="https://mp3gain.sourceforge.net/"
arch="all"
license="LGPL-2.1-only"
makedepends="mpg123-dev"
options="!check" # no testsuite
source="$pkgname-$pkgver.zip::https://sourceforge.net/projects/mp3gain/files/mp3gain/$pkgver/mp3gain-$_pkgver_download-src.zip/download"
builddir="$srcdir/"
build() {
	make OSTYPE=linux
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make INSTALL_PATH="$pkgdir"/usr/bin OSTYPE=linux install
}

sha512sums="
ec9de6c755120480ccb72b34a0042aea7546ef923090ab04e420d5b189523b4504e29952a3d695d3c42c74348f5c3c9123ff090bcc671e43375711e085d67480  mp3gain-1.6.2.zip
"
